package ldkxingzhe.l365calendar.model;

/**
 * 重复类型
 * Created by xingzhe on 16/2/15.
 */
public class RepeatType {
    // 重复类型就以其对应的index
    private static final String[] repeatName = new String[]{
            "不重复", "每天", "每周","每月",
            "每年", "法定工作日", "农历每月", "农历每年",
            "自定义"
    };

    public static final int NO_REPEAT = 0, EVERY_DAY = 1, EVERY_WEEK = 2, EVERY_MONTH = 3;
    public static final int EVERY_YEAR = 4, LEGAL_WORKING_DAY = 5, LUNAR_MONTH = 6, LUNAR_YEAR = 7;
    public static final int DIY = 8;

    public static String repeatNameOfIndex(int index){
        if(index < 0 || index > repeatName.length) return null;
        return repeatName[index];
    }

    public static int size(){
        return repeatName.length;
    }
}
